import java.util.Scanner;

// 创建银行账号类
class SavingAccount{
    static double interest = 0.015;  // 存储年利率（类变量）
    private double balance;  // 存款余额（私有的变量）

    public static void setInterest(double interest) {
        SavingAccount.interest = interest;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }
    // 计算年利息
    public double year_interest(){
        return balance*interest;
    }
    // 计算月利息
    public double month_interest(){
        return year_interest()/12;
    }
}
public class Main3 {
    public static void main(String[] args) {
        SavingAccount saver = new SavingAccount(); // 创建saver对象
        Scanner sc = new Scanner(System.in);
        saver.setBalance(sc.nextDouble());   // 输入存款余额
        saver.setInterest(sc.nextDouble());  // 输入年利率
        System.out.println("您的存款为"+ saver.getBalance()+"元");
        System.out.println("年利息为"+saver.year_interest()+"元");
        System.out.println("月利息为"+saver.month_interest()+"元");
    }
}
